import { ref, computed } from 'vue'
export default function useCounter() {
  const count = ref(100)
  const increment = () => {
    return count.value++
  }
  const double = computed(() => {
    return count.value * 2
  })
  return {
    count,
    increment,
    double
  }
}